package com.lframework.xingyun.basedata.service.product;

import com.lframework.starter.web.core.service.BaseMpService;
import com.lframework.xingyun.basedata.entity.ProductSpecCostDetail;
import com.lframework.xingyun.basedata.vo.product.speccost.ProductSpecCostDetailVo;
import com.lframework.xingyun.basedata.vo.product.speccost.QueryProductSpecCostDetailVo;

import java.util.List;

/**
 * 商品规格成本明细 Service
 */
public interface ProductSpecCostDetailService extends BaseMpService<ProductSpecCostDetail> {

    /**
     * 查询列表
     * @param vo
     * @return
     */
    List<ProductSpecCostDetail> query(QueryProductSpecCostDetailVo vo);

    /**
     * 根据ID查询
     * @param id
     * @return
     */
    ProductSpecCostDetail findById(String id);

    /**
     * 保存
     * @param vo
     * @return
     */
    String save(String mainProductId, List<ProductSpecCostDetailVo> vo);

}

